package org.linlinjava.litemall.admin.vo.shop;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author wj
 * @date 2021/8/14 17:42
 */
public class CommodityClassificationVo {

    private Integer id;

    @NotBlank(message = "一级名称不能为空")
    private String name;

    @Size(min = 1,message = "二级名称不能为空")
    private List<String> children;

    @NotNull(message = "排序不能为空")
    private Integer chronologicalOrder;

    private Integer dsc;

    public Integer getDsc() {
        return dsc;
    }

    public void setDsc(Integer dsc) {
        this.dsc = dsc;
    }

    public Integer getChronologicalOrder() {
        return chronologicalOrder;
    }

    public void setChronologicalOrder(Integer chronologicalOrder) {
        this.chronologicalOrder = chronologicalOrder;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getChildren() {
        return children;
    }

    public void setChildren(List<String> children) {
        this.children = children;
    }
}
